<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="/WEB-INF/tlds/nodes-faces.tld" prefix="n" %>

<f:subview id="instanceApplets">

    <h:panelGroup id="instance" layout="block" style="display:inline" rendered="#{NodesBean.appletSubstitution && DataBean.treeVirtualPageInstance}"/>
    <n:applet function="instance"
              code="offset.nodes.client.vdialog.view.instance.EditInstanceApplet" codebase="#{NodesBean.contextPath}" jar="dialog.jar"
              width="0" height="0" rendered="#{NodesBean.appletSubstitution && DataBean.treeVirtualPageInstance}">
        <f:param name="service" value="#{NodesBean.dialogPath}"/>
        <f:param name="base" value="#{NodesBean.repositoryPath}"/>
        <f:param name="path" value="#{PathBean.path}"/>
    </n:applet>

    <n:applet rendered="#{!NodesBean.appletSubstitution && DataBean.components.editInstance.rendered}"
              code="offset.nodes.client.vdialog.view.instance.EditInstanceApplet" codebase="#{NodesBean.contextPath}" jar="dialog.jar"
              width="0" height="0">
        <f:param name="service" value="#{NodesBean.dialogPath}"/>
        <f:param name="base" value="#{NodesBean.repositoryPath}"/>
        <f:param name="path" value="#{PathBean.path}"/>
    </n:applet>

</f:subview>